﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWPF.Models.PC.Disk
{
    public interface IDisk
    {
        /// <summary>
        /// 获取当前电脑的所有硬盘基础信息
        /// </summary>
        /// <param name="Precision">返回值保留小数位数</param>
        /// <returns></returns>
        DiskContext GetDiskInfo(int Precision = 2);
    }
    public class DiskContext
    {
        /// <summary>
        /// 所有硬盘的盘符
        /// </summary>
        public List<string> Name { get; set; }

        /// <summary>
        /// 所有硬盘总容量
        /// </summary>
        public List<double> Volume { get; set; }

        /// <summary>
        /// 所有硬盘总容量
        /// </summary>
        public List<double> UsedVolume { get; set; }


        /// <summary>
        /// 硬盘使用率
        /// </summary>
        public List<double> VolumeUsage { get; set; }
    }
}
